package com.qf.taobei.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class Product {
    @ApiModelProperty("商品id")
    private Integer id;
    @ApiModelProperty("商品名称")
    private String name;
    @ApiModelProperty("价格")
    private Double price;
    @ApiModelProperty("审核情况")
    private Integer flag;
    @ApiModelProperty("照片ID")
    private Integer imgId;
    @ApiModelProperty("库存")
    private Integer repertory;
    @ApiModelProperty("商品描述")
    private String context;
    @ApiModelProperty("类型ID")
    private Integer tId;
    @ApiModelProperty("上架时间")
    private String pushTime;
    @ApiModelProperty("下架时间")
    private String pullTime;
    @ApiModelProperty("提交时间")
    private String submitTime;
    @ApiModelProperty("销量")
    private Integer sale;
    @ApiModelProperty("店铺ID")
    private Integer storeId;
    @ApiModelProperty("折后价")
    private Double discountPrice;
    @ApiModelProperty("评星")
    private Integer star;
    @ApiModelProperty("成本价")
    private Double proCost;
    @ApiModelProperty("是否删除")
    private String isDelete;


    public Product(Integer id, String name, Double price, Integer flag, Integer imgId, Integer repertory, String context, Integer tId, String pushTime, Integer sale,  Double discountPrice, Integer star, Double proCost) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.flag = flag;
        this.imgId = imgId;
        this.repertory = repertory;
        this.context = context;
        this.tId = tId;
        this.pushTime = pushTime;
        this.sale = sale;
        this.discountPrice = discountPrice;
        this.star = star;
        this.proCost = proCost;
    }
    public Product( String name, Double price, Integer flag, Integer imgId, Integer repertory, String context, Integer tId, String pushTime, Integer sale, Integer storeId, Double discountPrice, Integer star, Double proCost) {
        this.name = name;
        this.price = price;
        this.flag = flag;
        this.imgId = imgId;
        this.repertory = repertory;
        this.context = context;
        this.tId = tId;
        this.pushTime = pushTime;
        this.sale = sale;
        this.storeId = storeId;
        this.discountPrice = discountPrice;
        this.star = star;
        this.proCost = proCost;
    }
}
